@extends('pc.v3.layouts.newapp')
@push('styles')
  <link rel="stylesheet" href="{{web_static('pc/v3/css/list.min.css',true)}}"/>
@endpush
@section('content')
  <div class="w100">
    <div class="wrap term-wrap">
      <div class="term-content">
        <div class="terms b-dotted">
          <label class="term-title">类型</label><span class="term-list term-type-list">
            @php $tabsUrl = $url->withoutQueryParameter('q'); @endphp
            @if($list_url->isRentalTypeEntire())
              @php $parameter = $list_url->setUrlParser($tabsUrl)->withPage()->withHouseFeature()->getParameter(); @endphp
            @else
              @php $parameter = $list_url->setUrlParser($tabsUrl)->withPage()->getParameter(); @endphp
            @endif<a href="{{$url->withPath('')->withBasename($parameter)->withDirname(\Common\Define\Route\WebRoute::ZUFANG)->withoutQueryParameter('q')->toString()}}" class="@if($list_url->getRoute() == \Common\Define\Route\WebRoute::ZUFANG) active @endif">区域</a><a href="{{$url->withPath('')->withBasename($parameter)->withDirname(\Common\Define\Route\WebRoute::DITIE)->withoutQueryParameter('q')->toString()}}" class="@if($list_url->getRoute() == \Common\Define\Route\WebRoute::DITIE) active @endif">地铁</a><a href="{{$url->withPath('')->withBasename($parameter)->withDirname(\Common\Define\Route\WebRoute::GAOXIAO)->withoutQueryParameter('q')->toString()}}" class="@if($list_url->getRoute() == \Common\Define\Route\WebRoute::GAOXIAO) active @endif">高校</a><a href="{{$url->withPath('')->withBasename($parameter)->withDirname(\Common\Define\Route\WebRoute::ZHOUBIAN)->withoutQueryParameter('q')->toString()}}" class="@if($list_url->getRoute() == \Common\Define\Route\WebRoute::ZHOUBIAN) active @endif">周边</a></span>
        </div>
        <div class="terms boxpositoin">
          <label class="term-title">地点</label>
          <input type="text" id="placeKeyword" placeholder="公司名、建筑物、地址" maxlength="32" value="{{$list_url->getPlaceName()}}" class="terms-input"/>
        </div>
        <div class="terms">
          <label class="term-title">方式</label><span class="term-list"><a href="{{$list_url->withRentalType()->withPage()->toString()}}" class="@if(count($list_url->getRentalType()) == 0) active @endif">不限</a>
            @foreach (\Common\Define\Param\RentalType::items() as $item)<a href="{{$list_url->withRentalType($item['short_name'])->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getRentalType())) active @endif">{{$item['name']}}</a>
            @endforeach</span>
        </div>
        <div class="terms">
          <label class="term-title">价格</label><span class="term-list"><a href="{{$list_url->withRentPrice()->withCustomPrice()->withPage()->toString()}}" class="@if(count($list_url->getRentPrice()) == 0 && count($list_url->getCustomPrice()) == 0) active @endif">不限</a>
            @php $Instance = \Common\Define\Param\RentPrice::getCityRentPrice($city); @endphp
            @foreach ($Instance::items() as $item)<a href="{{$list_url->withRentPrice($item['short_name'])->withCustomPrice()->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getRentPrice())) active @endif">{{$item['name']}}</a>
            @endforeach<span class="custom">
              <input type="text" maxlength="6" value="{{$list_url->getCustomStartRentPrice()}}" class="textinput min"/> -
              <input type="text" maxlength="6" value="{{$list_url->getCustomEndRentPrice()}}" class="textinput max"/> 元
              <input type="button" name="name" data-url="{{$list_url->withRentPrice()->withPage()->withCustomPrice('min','max')->toString()}}" value="确定" class="btn"/></span></span>
        </div>
        @if($list_url->isRentalTypeEntire() || $list_url->isChooseAllRentalType())
        <div class="terms @if(count($list_url->getHouseType()) == 0 && count($list_url->getHouseSize()) == 0 && count($list_url->getHouseFeature()) == 0) @if($list_url->isRentalTypeShare() || $list_url->isNotChooseRentalType()) more  @endif @endif">
          <label class="term-title">户型</label><span class="term-list"><a href="{{$list_url->withHouseType()->withPage()->toString()}}" class="@if(count($list_url->getHouseType()) == 0) active @endif">不限</a>
            @foreach (\Common\Define\Param\HouseType::items() as $item)<a href="{{$list_url->withHouseType($item['short_name'])->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getHouseType())) active @endif">{{$item['name']}}</a>
            @endforeach</span>
        </div>
        <div class="terms @if(count($list_url->getHouseType()) == 0 && count($list_url->getHouseSize()) == 0 && count($list_url->getHouseFeature()) == 0) @if($list_url->isRentalTypeEntire() || $list_url->isChooseAllRentalType()) more @endif @endif">
          <label class="term-title">朝向</label><span class="term-list"><a href="{{$list_url->withHouseDirection()->withPage()->toString()}}" class="@if(count($list_url->getHouseDirection()) == 0) active @endif">不限</a>
            @foreach (\Common\Define\Param\HouseDirection::items() as $item)<a href="{{$list_url->withHouseDirection($item['short_name'])->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getHouseDirection())) active @endif">{{$item['name']}}</a>
            @endforeach</span>
        </div>
        @else
        <div class="terms @if(count($list_url->getHouseType()) == 0 && count($list_url->getHouseSize()) == 0 && count($list_url->getHouseFeature()) == 0) @if($list_url->isRentalTypeEntire() || $list_url->isChooseAllRentalType()) more @endif @endif">
          <label class="term-title">朝向</label><span class="term-list"><a href="{{$list_url->withHouseDirection()->withPage()->toString()}}" class="@if(count($list_url->getHouseDirection()) == 0) active @endif">不限</a>
            @foreach (\Common\Define\Param\HouseDirection::items() as $item)<a href="{{$list_url->withHouseDirection($item['short_name'])->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getHouseDirection())) active @endif">{{$item['name']}}</a>
            @endforeach</span>
        </div>
        <div class="terms @if(count($list_url->getHouseType()) == 0 && count($list_url->getHouseSize()) == 0 && count($list_url->getHouseFeature()) == 0) @if($list_url->isRentalTypeShare() || $list_url->isNotChooseRentalType()) more  @endif @endif">
          <label class="term-title">户型</label><span class="term-list"><a href="{{$list_url->withHouseType()->withPage()->toString()}}" class="@if(count($list_url->getHouseType()) == 0) active @endif">不限</a>
            @foreach (\Common\Define\Param\HouseType::items() as $item)<a href="{{$list_url->withHouseType($item['short_name'])->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getHouseType())) active @endif">{{$item['name']}}</a>
            @endforeach</span>
        </div>
        @endif
        @if(!$list_url->isRentalTypeShare())
        <div class="terms @if(count($list_url->getHouseType()) == 0 && count($list_url->getHouseSize()) == 0 && count($list_url->getHouseFeature()) == 0) more @endif">
          <label class="term-title">面积</label><span class="term-list"><a href="{{$list_url->withHouseSize()->withPage()->toString()}}" class="@if(count($list_url->getHouseSize()) == 0) active @endif">不限</a>
            @foreach (\Common\Define\Param\HouseSize::items() as $item)<a href="{{$list_url->withHouseSize($item['short_name'])->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getHouseSize())) active @endif">{{$item['name']}}</a>
            @endforeach</span>
        </div>
        @endif
        <div class="term-item-del"><a href="{{seo_url($list_url->getRoute())}}"><i class="icon icon-close"></i><span>清除条件</span></a></div>
        @if($list_url->isRentalTypeShare())
        <div class="terms @if(count($list_url->getHouseType()) == 0 && count($list_url->getHouseSize()) == 0 && count($list_url->getHouseFeature()) == 0) more @endif">
          <label class="term-title">特色</label><span class="term-list"><a href="{{$list_url->withHouseFeature()->withPage()->toString()}}" class="@if(count($list_url->getHouseFeature()) == 0) active @endif">不限</a>
            @foreach (\Common\Define\Param\HouseFeature::items() as $item)<a href="{{$list_url->withHouseFeature($item['short_name'])->withPage()->toString()}}" class="@if(in_array($item['short_name'], $list_url->getHouseFeature())) active @endif">{{$item['name']}}</a>
            @endforeach</span>
        </div>
        @endif
      </div>
      @if(count($list_url->getHouseType()) == 0 && count($list_url->getHouseSize()) == 0 && count($list_url->getHouseFeature()) == 0)<a class="btn-term"><i class="icon icon-arrowDown"></i></a>
      @endif
    </div>
    <div class="order">
      <div class="container back">
        <label>排序</label><a href="{{$list_url->withOrderBy()->withPage()->toString()}}" class="ml-19 @if(count($list_url->getOrderBy()) == 0 || in_array('od0', $list_url->getOrderBy())) active @endif"><span>默认</span></a><a href="{{$list_url->withOrderBy('od1','od2')->withPage()->toString()}}" class="@if(in_array('od1', $list_url->getOrderBy()) || in_array('od2', $list_url->getOrderBy())) active @endif"><span>租金</span>
          @if(in_array('od1', $list_url->getOrderBy()))<i class="icon icon-arrowDown"></i>
          @elseif(in_array('od2', $list_url->getOrderBy()))<i class="icon icon-arrowDown trans"></i>
          @else<i class="icon icon-arrowDown default"></i>
          @endif</a><a href="{{$list_url->withOrderBy('od4','od3')->withPage()->toString()}}" class="@if(in_array('od3', $list_url->getOrderBy()) || in_array('od4', $list_url->getOrderBy())) active @endif"><span>面积</span>
          @if(in_array('od3', $list_url->getOrderBy()))<i class="icon icon-arrowDown trans"></i>
          @elseif(in_array('od4', $list_url->getOrderBy()))<i class="icon icon-arrowDown"></i>
          @else<i class="icon icon-arrowDown default"></i>
          @endif</a><a href="{{$list_url->withOrderBy('od6','od5')->withPage()->toString()}}" class="@if(in_array('od5', $list_url->getOrderBy()) || in_array('od6', $list_url->getOrderBy())) active @endif"><span>时间</span>
          @if(in_array('od5', $list_url->getOrderBy()))<i class="icon icon-arrowDown trans"></i>
          @elseif(in_array('od6', $list_url->getOrderBy()))<i class="icon icon-arrowDown"></i>
          @else<i class="icon icon-arrowDown default"></i>
          @endif</a><span class="total">共为您找到<strong>{{$items->total()}}</strong>条房源</span>
      </div>
    </div>
    <div class="container">
      <div class="clearfix lists">
        <div class="left">
          @if($items->isEmpty())
            <div class="demand-box">
              <div class="demand-container">
                <div class="demand-container-Prompt"><img src="{{web_static('pc/v3/assets/list/unHouse.png')}}"/>
                  <p>暂时没有找到您想要的房子</p>
                  <p class="demand-span">建议调整筛选方式或告诉我们您的需求</p>
                </div>
                <div class="bg-fff demand-message customer-from">
                  <h3 class="demand-title">您的需求</h3>
                  <ul class="demand-list">
                    <div class="mess-village-nameerr"></div>
                    <li class="demand-city-change icon icon-required icon-required-first">
                      <div class="checkboxFour @if($list_url->isNotChooseRentalType() || $list_url->isChooseAllRentalType()) checked @endif">
                        <input type="radio" name="rent_type" value="" id="checkboxFourInput-unlimited" @if($list_url->isNotChooseRentalType() || $list_url->isChooseAllRentalType()){{'checked'}}@endif="@if($list_url->isNotChooseRentalType() || $list_url->isChooseAllRentalType()){{'checked'}}@endif" class="demand-radio"/><span>不限</span>
                        <label for="checkboxFourInput-unlimited"></label>
                      </div>
                      <div class="checkboxFour @if($list_url->isRentalTypeEntire()) checked @endif">
                        <input type="radio" name="rent_type" value="ENTIRE" id="checkboxFourInput-rent" @if($list_url->isRentalTypeEntire()){{'checked'}}@endif="@if($list_url->isRentalTypeEntire()){{'checked'}}@endif" class="demand-radio"/><span>整租</span>
                        <label for="checkboxFourInput-rent"></label>
                      </div>
                      <div class="checkboxFour @if($list_url->isRentalTypeShare()) checked @endif">
                        <input type="radio" name="rent_type" value="SHARE" id="checkboxFourInput-share" @if($list_url->isRentalTypeShare()){{'checked'}}@endif="@if($list_url->isRentalTypeShare()){{'checked'}}@endif" class="demand-radio"/><span>合租</span>
                        <label for="checkboxFourInput-share"></label>
                      </div>
                    </li>
                    @php $currentDistrict = null; @endphp
                    @if(method_exists($list_url,'getCurrentDistrict') && is_object($list_url->getCurrentDistrict()))
                      @php $currentDistrict = $list_url->getCurrentDistrict(); @endphp
                    @endif
                    @if(!isset($cityDistrict))
                      @php $cityDistrict = \Common\Model\Com\CityDistrict::getCityDistrictForTelephoneCode($city); @endphp
                    @endif
                    @if(is_array($cityDistrict))
                    <li class="demand-city-change icon icon-required">
                      <input type="hidden" name="city_code" value="{{$city->area_code}}"/><i id="arrcode" class="icon icon-arrowDown"></i>
                      <input type="hidden" name="_token" value="{{$_token}}"/><i id="arrowDown" class="icon icon-arrowDown"></i>
                      <input type="text" id="demand-city-input" onfocus="this.blur();" placeholder="请选择区域" value="@if(is_object($currentDistrict)){{$currentDistrict->townName}}@endif"/>
                      <input type="hidden" name="district_code" value="@if(is_object($currentDistrict)){{$currentDistrict->id}}@endif"/>
                      <div class="change-center change-center-left icon icon-change">
                        @foreach ($cityDistrict as $item)
                        <p data-value="{{$item->id}}" class="change-item @if(is_object($currentDistrict) && $item->id == $currentDistrict->id) change-item-active @endif">{{$item->townName}}</p>
                        @endforeach
                      </div>
                      @php $currentBusinessCircle = []; @endphp
                      @if(method_exists($list_url,'getCurrentBusinessCircle'))
                        @php $currentBusinessCircle = $list_url->getCurrentBusinessCircle(); @endphp
                      @endif
                      @php $businessCircleNamesAndIds = [null,null]; @endphp
                      @if(method_exists($list_url,'getCurrentBusinessCircleNamesAndIdsForSeekRentForm'))
                        @php  $businessCircleNamesAndIds = $list_url->getCurrentBusinessCircleNamesAndIdsForSeekRentForm(); @endphp
                      @endif
                      <input type="text" id="demand-trading-input" onfocus="this.blur();" placeholder="请选择商圈" value="{{$businessCircleNamesAndIds[0]}}" class="mr0 ml3"/>
                      <input type="hidden" name="business_circle_ids" value="{{$businessCircleNamesAndIds[1]}}"/>
                      <div class="change-center change-center-right icon icon-change">
                        @if($currentDistrict && isset($currentDistrict->circleList) && is_array($currentDistrict->circleList))
                        @foreach ($currentDistrict->circleList as $item)
                        <p data-value="{{$item->circleId}}" class="change-item @if(\Reheat\Helpers\Arr::findForKeyAndValueByObject($currentBusinessCircle,'circleId', $item->circleId)) change-item-active @endif">{{$item->circleName}}</p>
                        @endforeach
                        @endif
                      </div>
                    </li>
                    @endif
                    <li class="demand-money icon icon-required">
                      @php $defaultMinPrice = 1500;$defaultMaxPrice = 2500; @endphp
                      @if($city->spell == \Common\Define\iShangzu::CITY_SPELL_SHANGHAI)
                        @php $defaultMinPrice = 2000;$defaultMaxPrice = 4000;@endphp
                      @endif
                      @php $priceArray=$list_url->getCurrentRentPrice();@endphp
                      @if(count($priceArray)>0)
                        @php $minPrice = $list_url->getRentPriceMin($defaultMinPrice); @endphp
                        @php $maxPrice = $list_url->getRentPriceMax($defaultMaxPrice); @endphp
                      @else
                        @php $minPrice = ''; @endphp
                        @php $maxPrice = ''; @endphp
                      @endif
                      <input type="tel" pattern="[0-9]" id="s-money" placeholder="租金价格" value="@if($list_url->isChooseCustomPrice()){{$list_url->getCustomStartRentPrice()}}@else{{$minPrice}}@endif"/><i>-</i>
                      <input type="tel" pattern="[0-9]" id="b-money" placeholder="租金价格" value="@if($list_url->isChooseCustomPrice()){{$list_url->getCustomEndRentPrice()}}@else{{$maxPrice}}@endif" class="mr0 ml-5"/>
                    </li>
                    <li class="demand-city-phone icon icon-required">
                      <input type="text" name="phone" placeholder="手机号码" class="demand-phone"/>
                    </li>
                  </ul>
                  <div class="demand-sub-box"><a id="demand-submit" onclick="ares_push('zuke_submit','/','click','{{app('appUuid')}}');" href="javascript:;">提交</a></div>
                </div>
                <div class="mess-submit-wait">
                  <div class="loading-content">
                    <div class="sk-fading-circle">
                      <div class="sk-circle1 sk-circle"></div>
                      <div class="sk-circle2 sk-circle"></div>
                      <div class="sk-circle3 sk-circle"></div>
                      <div class="sk-circle4 sk-circle"></div>
                      <div class="sk-circle5 sk-circle"></div>
                      <div class="sk-circle6 sk-circle"></div>
                      <div class="sk-circle7 sk-circle"></div>
                      <div class="sk-circle8 sk-circle"></div>
                      <div class="sk-circle9 sk-circle"></div>
                      <div class="sk-circle10 sk-circle"></div>
                      <div class="sk-circle11 sk-circle"></div>
                      <div class="sk-circle12 sk-circle"></div>
                    </div>
                  </div>
                  <p class="wait-con">您的租房需求正在提交中</p>
                  <p>请稍等</p>
                </div>
                <div class="mess-succ customer-success"><img src="{{web_static('pc/v3/assets/cluesucc.png')}}"/>
                  <p>需求已提交</p><span>我们会尽快跟你联系</span>
                </div>
              </div>
            </div>
            @php $recommendHouses = \Common\Helpers\PcView\RecommendList::getRecommendHouses($city, $factory) @endphp
            @if(is_array($recommendHouses) && count($recommendHouses) > 0)
            <div class="demand-list">
              <div class="demand-list-title">
                <p>推荐房源</p>
                <p>精选优质房源，经过严格审核，实拍房源照片，居住安全可靠</p>
              </div>
              @foreach ($recommendHouses as $item)
              @php $item = Common\Standard\Object\stdHouse::instance($item); @endphp
                <div class="list-item">
                  <div class="list-item-pic"><a target="_blank" href="{{$item->url()}}" title="{{$item->title}}"><img src="{{$item->image("@280w_210h_1c_1e")}}" alt="{{$item->premName}}"/></a></div>
                  <div class="list-item-info">
                    <div class="list-item-intro"><a target="_blank" href="{{$item->url()}}" title="{{$item->title}}"><span>{{$item->premName}} @if(isset($item->doorModelDescribing)){{$item->doorModelDescribing}}@endif</span></a></div>
                    <div class="list-wrap">
                      <p>
                        @php $houseTypeShortName = $item->getHouseTypeShortName() @endphp
                        @if(empty($houseTypeShortName))<span>{{$item->getHouseRoomHallToilet()}}</span>
                        @else<span><a href="{{$url->withPath(\Common\Define\Route\WebRoute::ZUFANG)->withPathSegment($houseTypeShortName,2)->toString()}}">{{$item->getHouseRoomHallToilet()}}</a></span>
                        @endif<i>|</i>
                        @if($item->isShareHouse())
                          @php $houseDirectionShortName = $item->getHouseDirectionShortName() @endphp
                          @if(empty($houseDirectionShortName))<span>{{$item->getHouseDirection('朝')}}</span>
                          @else<span><a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment($houseDirectionShortName,2)->toString()}}">{{$item->getHouseDirection('朝')}}</a></span>
                          @endif<i>|</i>
                        @endif<span>{{$item->getHouseSize()}}<i>|</i></span><span>{{$item->getHouseFloor()}}<i>|</i></span><span>{{$item->getFitmentTypeName()}}</span>
                      </p>
                      <p>{{str_limit($item->districtName . $item->address, 38)}}
                        @if($item->isMetroHouse())<span class="sub-way"><i class="icon icon-subway"></i><span>{{$item->getMetroDistanceDescription()}}</span></span>
                        @endif
                      </p>
                      @if($item->isSpecialOfferHouse())<i class="icon icon-hot">特价优惠 @if($item->specialOfferDays() != -1)剩{{$item->specialOfferDays()}}天@endif</i>
                      @endif
                    </div><span class="price">{{$item->currentPrice()}}<i>元/月</i></span>
                    <div class="tag-list">
                      @php $apartmentTypeName = $item->getApartmentTypeName(); @endphp
                      @if($apartmentTypeName)<i class="tag">{{$apartmentTypeName}}</i>
                      @endif
                      @php $rentalTypeShortName = $item->getRentalTypeShortName() @endphp
                      @if(empty($rentalTypeShortName))<span class="house-tag">{{$item->getRentalTypeName()}}</span>
                      @else<a href="{{$url->withPath(\Common\Define\Route\WebRoute::ZUFANG)->withPathSegment($rentalTypeShortName,2)->toString()}}"><i class="tag">{{$item->getRentalTypeName()}}</i></a>
                      @endif
                      @if($item->isSmartKeyHouse())<i class="tag">智能锁</i>
                      @endif
                      @if($item->isMetroHouse())<a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment('fs2ts6',2)->toString()}}"><i class="tag">地铁房</i></a>
                      @endif
                      @foreach($item->getSpecialTags() as $tag)<i class="tag">{{$tag}}</i>
                      @endforeach
                      @foreach($item->getTags() as $tag)
                        @if(strpos($tag,'独卫'))<a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment('fs2ts5',2)->toString()}}"><i class="tag">{{$tag}}</i></a>
                        @elseif(strpos($tag,'阳台'))<a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment('fs2ts1',2)->toString()}}"><i class="tag">{{$tag}}</i></a>
                        @else<i class="tag">{{$tag}}</i>
                        @endif
                      @endforeach
                    </div>
                  </div>
                </div>
              @endforeach
            </div>
            @endif
              <div class="demand-img"><a href="{{seo_url(\Common\Define\Route\WebRoute::DOWNLOAD)}}"><img src="{{web_static('pc/v3/assets/list/empty-data.png')}}"/></a></div>
          @else
            @foreach($items->items() as $item)
              @php $item = Common\Standard\Object\stdHouse::instance($item); @endphp
              <div class="list-item">
                <div class="list-item-pic"><a target="_blank" href="{{$item->url()}}" title="{{$item->districtName}}{{$item->bizCircleName}}{{$item->premName}} {{$item->getHouseRoomHallToilet(false)}}"><img src="{{web_static('pc/v3/assets/list/lazyBack.png')}}" data-original="{{$item->image('@180w_135h_1c_1e')}}" alt="{{$city->name}}{{$item->districtName}}{{$item->premName}}公寓出租租房" class="lazy"/></a></div>
                <div class="list-item-info">
                  <div class="list-item-intro"><a target="_blank" href="{{$item->url()}}" title="{{$item->title}}"><span>{{$item->premName}} @if(isset($item->doorModelDescribing)){{$item->doorModelDescribing}}@endif</span></a></div>
                  <div class="list-wrap">
                    <p>
                      @php $houseTypeShortName = $item->getHouseTypeShortName() @endphp
                      @if(empty($houseTypeShortName))<span>{{$item->getHouseRoomHallToilet()}}</span>
                      @else<span><a href="{{$url->withPath(\Common\Define\Route\WebRoute::ZUFANG)->withPathSegment($houseTypeShortName,2)->toString()}}">{{$item->getHouseRoomHallToilet()}}</a></span>
                      @endif<i>|</i>
                      @if($item->isShareHouse())
                        @php $houseDirectionShortName = $item->getHouseDirectionShortName() @endphp
                        @if(empty($houseDirectionShortName))<span>{{$item->getHouseDirection('朝')}}</span>
                        @else<span><a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment($houseDirectionShortName,2)->toString()}}">{{$item->getHouseDirection('朝')}}</a></span>
                        @endif<i>|</i>
                      @endif<span>{{$item->getHouseSize()}}<i>|</i></span><span>{{$item->getHouseFloor()}}<i>|</i></span><span>{{$item->getFitmentTypeName()}}</span>
                    </p>
                    <p>{{str_limit($item->districtName . $item->address, 38)}}
                      @if($item->isMetroHouse())<span class="sub-way"><i class="icon icon-subway"></i><span>{{$item->getMetroDistanceDescription()}}</span></span>
                      @endif
                    </p>
                    @if($item->isSpecialOfferHouse())<i class="icon icon-hot">特价优惠 @if($item->specialOfferDays() != -1)剩{{$item->specialOfferDays()}}天@endif</i>
                    @endif
                  </div><span class="price">{{$item->currentPrice()}}<i>元/月</i></span>
                  <div class="tag-list">
                    @php $apartmentTypeName = $item->getApartmentTypeName(); @endphp
                    @if($apartmentTypeName)<i class="tag">{{$apartmentTypeName}}</i>
                    @endif
                    @php $rentalTypeShortName = $item->getRentalTypeShortName() @endphp
                    @if(empty($rentalTypeShortName))<span class="house-tag">{{$item->getRentalTypeName()}}</span>
                    @else<a href="{{$url->withPath(\Common\Define\Route\WebRoute::ZUFANG)->withPathSegment($rentalTypeShortName,2)->toString()}}"><i class="tag">{{$item->getRentalTypeName()}}</i></a>
                    @endif
                    @if($item->isSmartKeyHouse())<i class="tag">智能锁</i>
                    @endif
                    @if($item->isMetroHouse())<a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment('fs2ts6',2)->toString()}}"><i class="tag">地铁房</i></a>
                    @endif
                    @foreach($item->getSpecialTags() as $tag)<i class="tag">{{$tag}}</i>
                    @endforeach
                    @foreach($item->getTags() as $tag)
                      @if(strpos($tag,'独卫'))<a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment('fs2ts5',2)->toString()}}"><i class="tag">{{$tag}}</i></a>
                      @elseif(strpos($tag,'阳台'))<a href="{{$url->withPath(\Common\Define\Route\MobileRoute::ZUFANG)->withPathSegment('fs2ts1',2)->toString()}}"><i class="tag">{{$tag}}</i></a>
                      @else<i class="tag">{{$tag}}</i>
                      @endif
                    @endforeach
                  </div>
                </div>
              </div>
            @endforeach
          @endif
          @if(!$items->isEmpty())
            {{$items->render('pc.v3.pagination.list',compact('list_url'))}}
          @endif
        </div>
        <div class="right">
          <div class="ad">
            <div class="first-box">
              <div class="house-box"><img src="{{web_static('pc/v3/assets/list/house-entrust.png')}}" alt="委托房源" onclick="ares_push('zf_yezhu','/','click');"/></div>
            </div>
            @php
              $req = new Common\Java\Cms\ResourceList();
              $listResourceSidebar = $req->pc_list_sidebar($city->area_code);
            @endphp
            <div class="second-box">
              @if(is_array($listResourceSidebar))
                @foreach($listResourceSidebar as $sidebar)
                  @php $resource = Common\Standard\Object\stdResource::instance($sidebar); @endphp
                  <div class="ad-box"><a href="{{$resource->pc_city_url_convert($city, $resource->getLinkUrl())}}" target="_blank" title="{{$resource->getTitle()}}"><img src="{{$resource->getImageUrl()}}@234w_175h.jpg" alt="{{$resource->getTitle()}}"/></a></div>
                @endforeach
              @endif
              <div class="ad-box"><a href="{{seo_url(\Common\Define\Route\WebRoute::DOWNLOAD)}}"><img src="http://img.ishangzu.com/ishangzu/2017/06/16/17/c3ed5e7d-a549-6d5a-5652-e2bfd3d99444.jpg" alt="APP下载"/></a></div>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
@endsection
@push('scripts')
  <script>
    var iszConfig = {
        city_id: '{{$city->area_code}}',
        city_name: '{{$city->name}}',
        city_abbr: '{{$city->identifier}}',
        city_lng: '{{$city->lng}}',
        city_lat: '{{$city->lat}}',
        channel:'{{$url->getSegment(1)}}',
    };
  </script>
  <script src="//webapi.amap.com/maps?v=1.3&amp;key=41aa4b3719e2d80aa72b27a6615cf526"></script>
  <script src="{{web_static('pc/v3/js/zhoubian.min.js',true)}}"></script>
@endpush